#ifndef _ISL29026_H_
#define _ISL29026_H_

#include <types.h>

#define ISL29026_ADDR       0x44
  
#define CONFIGURE           0x01
#define INTERRUPT           0x02
#define PROX_LT             0x03
#define PROX_HT             0x04
#define ALSIR_TH1           0x05
#define ALSIR_TH2           0x06
#define ALSIR_TH3           0x07
#define PROX_DATA           0x08
#define ALSIR_DT1           0x09
#define ALSIR_DT2           0x0A

#define TEST_MODE1          0x0E    
#define TEST_MODE2          0x0F

#define COMMEND_LIGHT       0x06
#define COMMEND_NOINTERRUPT 0x04        
#define COMMEND_RESET       0x00

#define RANGE0              0.0326
#define RANGE1              0.522

err_t isl29026_init(const char *i2c_bus_name);

void get_illumination(void);
#endif
